package com.example.jack.community.view.me;

import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;

import com.example.jack.community.R;

import org.zackratos.ultimatebar.UltimateBar;

/**
 * 基础活动类,作用是实现沉浸式状态栏
 * setting_status的颜色是1B1B1B
 * 黑色状态栏
 */
public class BlackStatusActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_base);
        //沉浸式状态栏
        status();
    }

    protected void status() {
        UltimateBar ultimateBar = new UltimateBar(BlackStatusActivity.this);
        ultimateBar.setColorBar(ContextCompat.getColor(BlackStatusActivity.this, R.color.setting_status));
    }
}
